package com.chixing.day04_oop;

public class TestOrder {
    public static void main(String[]args){
        //面向对象编程：OOP(Object Oriented Programming)
        Phone p1=new Phone();
        p1.setPhoneName("小米AAA");
        p1.setPhonePrice(2999);
        p1.setPhoneColor("白色");
        p1.setPhoneSize(4.5f);
        p1.setPhoneCapacity(256);

        Phone p2=new Phone();
        p2.setPhoneName("小米AAA");
        p2.setPhonePrice(2999);
        p2.setPhoneColor("白色");
        p2.setPhoneSize(4.5f);
        p2.setPhoneCapacity(2506);

        ReceiverAddress address1=new ReceiverAddress();
        address1.setUserName("BBB");
        address1.setUserTelno(11111111111L);
        address1.setAddressProvince("江苏省");
        address1.setAddressCity("苏州市");
        address1.setAddressDetail("若水路1号");

        MyOrder order = new MyOrder();
        order.setCustomerName("Allen");
        order.setOrderNumber("47398430903");
        order.setPhone(p1);//面向对象
        order.setAddress(address1);//面向对象


    }
}
